
using AutoMapper;
using SOEI.Solution.Application.Contracts.DomainEntities.RegulatoryMange.Dtos;
using SOEI.Solution.Customized.Dtos;
using SOEI.Solution.Integratedes.Organization;
using SOEI.Solution.Integratedes.Organization.Dtos;

namespace SOEI.Solution.CustomDtoAutoMapper
{

    /// <summary>
    /// 配置Member的AutoMapper映射
    /// 前往 <see cref="SolutionApplicationModule"/>的AbpAutoMapper配置方法下添加以下代码段
    /// OEconomyOrganiDtoAutoMapper.CreateMappings(configuration);
    /// </summary>
    public static class OEconomyOrganiDtoAutoMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap<OEconomyOrgani, OEconomyOrganiListDto>();
            configuration.CreateMap<OEconomyOrganiListDto, OEconomyOrgani>();

            configuration.CreateMap<OEconomyOrganiEditDto, OEconomyOrgani>();
            configuration.CreateMap<OEconomyOrgani, OEconomyOrganiEditDto>();

            configuration.CreateMap<OEconomyOrgani, OrganiViewDto>();
        }
    }
}